package rmi;

/*
 *
 *   服务器至少暴漏如下RPC/RMI接口：
 *       bool add(Book b)  添加一个书籍对象
 *       Book queryByID(int bookID)  查询指定ID的书籍对象
 *       BookList queryByName(String name) 按书名查询书籍列表
 *       bool delete(int bookID) 删除指定ID号的书籍对象
 *
 */

import java.io.Serializable;

public class Book implements Serializable {
    private int ID;
    private String name;
    private static final long serialVersionUID = -127L;

    public Book(int id, String na){
        this.ID = id;
        this.name = na;
    }

    public String getName() {
        return name;
    }

    public int getID() {
        return ID;
    }
    public void disp() {
        System.out.println("book info: "+ID+", "+name);
    }
}
